import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from "axios";
import SocketService from "@/utils/webSocket_utils";
// 连接websocket
SocketService.Instance.connect()
Vue.prototype.$socket = SocketService.Instance
// 基础路径配置
axios.defaults.baseURL = 'http://127.0.0.1:8888/api'

// 将echarts,axios,websocket挂载到vue的原型对象上
Vue.prototype.$echarts = window.echarts
Vue.prototype.$http = axios
// 引入公共样式
import './assets/css/global.less'
// 使用font-awesome字体图标
import 'font-awesome/css/font-awesome.min.css'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
